package controller;

import entity.User;
import services.UserServices;
import services.UserServicesImpl;

/**
 * @Author:SA
 * @DATA:DATA
 * 用户请求的控制层
 */


public class UserController {
    private UserServices userServices = new UserServicesImpl();
    //登录
    public boolean login(User user){
        boolean login = userServices.login(user);
        return login;
    }

    //注册
    public boolean register(User user){
        boolean register = userServices.register(user);
        return register;
    }
}
